import { API_BASE_URL, BASE_TARGET_URL } from './constant';

const rewrite = (path) => path.replace(/^\/templateApi/, '');
const init = {
  [API_BASE_URL]: {
    target: BASE_TARGET_URL,
    changeOrigin: true,
    rewrite,
  },
};

export default init;
